package com.imufe.chemicalenterprisedangerwarning.entity.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 项目化学品表
 * </p>
 *
 * @author BaiBan
 * @since 2022-09-26
 */
@Getter
@Setter
@TableName("project_chemical")
@ApiModel(value = "项目化学品", description = "项目化学品表")
public class ProjectChemicalPO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("关联项目编号")
    private Long projectId;

    @ApiModelProperty("关联化学品编号")
    private Long chemicalId;

    @ApiModelProperty("生产能力")
    private Long production;

    @ApiModelProperty("储存能力")
    private Long storage;

    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
